package com.sofwin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.sofwin.dto.NavsDto;
import com.sofwin.dto.TreeNodeDto;
import com.sofwin.dto.TreeNodeDto2;
import com.sofwin.pojo.SResource;
import com.sofwin.pojo.SResourceExample;

public interface SResourceMapper {
    int countByExample(SResourceExample example);

    int deleteByExample(SResourceExample example);

    int insert(SResource record);

    int insertSelective(SResource record);

    List<SResource> selectByExample(SResourceExample example);

    int updateByExampleSelective(@Param("record") SResource record, @Param("example") SResourceExample example);

    int updateByExample(@Param("record") SResource record, @Param("example") SResourceExample example);
    
    List<NavsDto> selectResources();
    
    SResource selectByPrimaryKey(Integer id);
    
    List<TreeNodeDto2> selectRoleResources(Integer roleId);
    
    List<NavsDto> listResourcesByRoleId(Integer roleId);
    
    List<TreeNodeDto2> selectResources_();
}